package com.danbay.cloud.device.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.danbay.cloud.device.entity.EnergyDayConsumption;

/**
 * Created by SJG on 2017/10/28.
 */
public interface EnergyDayConsumptionMapper extends BaseMapper<EnergyDayConsumption>{

    /**
     * 取设备某月最后一条记录
     * @param consumption
     * @return
     */
    EnergyDayConsumption getMonthLastRecord(EnergyDayConsumption consumption);
}
